package com.practice.java8.defaultfunction;


public class FormulaMain {

	public static void main(String[] args) {
		Formula formula = new Formula() {

			@Override
			public double calculate(int a) {
				return sqrt(a * 100);
			}
		};

		System.out.println(formula.sqrt(16));
		System.out.println(formula.calculate(16));
	}
	
}
